@media screen and (max-width:900px) {
  div.side-menu {
    opacity: 1;
    visibility: visible;
  }
}

.main-overlay.active {
  opacity: .7;
  visibility: visible;
}

.main-overlay {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  background-color: #3335;
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  z-index: 10;
}

// 抽屉开启
.side-menu.popup {
  transform: translateX(0);
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transition: all .5s cubic-bezier(.55, 0, .1, 1);
  -webkit-transition: all .5s cubic-bezier(.55, 0, .1, 1);
  -moz-transition: all .5s cubic-bezier(.55, 0, .1, 1);
  -ms-transition: all .5s cubic-bezier(.55, 0, .1, 1);
  -o-transition: all .5s cubic-bezier(.55, 0, .1, 1);
}

// 抽屉导航

.side-menu {
  z-index: 15;
  position: fixed;
  left: 0;
  top: 0;
  background: #f2f6fc;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 140px 15px 15px;
  width: 300px;
  transform: translateX(-100%);
  -webkit-transform: translateX(-100%);
  -moz-transform: translateX(-100%);
  -ms-transform: translateX(-100%);
  -o-transform: translateX(-100%);
  transition: all .5s cubic-bezier(.55, 0, .1, 1);
  -webkit-transition: all .5s cubic-bezier(.55, 0, .1, 1);
  -moz-transition: all .5s cubic-bezier(.55, 0, .1, 1);
  -ms-transition: all .5s cubic-bezier(.55, 0, .1, 1);
  -o-transition: all .5s cubic-bezier(.55, 0, .1, 1);
  opacity: 0;
  visibility: hidden;

  .sidebar-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    -o-object-fit: cover;
    object-fit: cover;
    user-select: none;
  }

  .logo {
    margin: 15px 0;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0px 0px 20px -5px rgb(158 158 158 / 22%);
    display: flex;
    align-items: center;

    .avatar {
      border-radius: 8px;
      margin-right: 10px;
      height: 45px;
      width: 45px;
      border-radius: 50%;
      overflow: hidden;
    }

    .info {
      font-family: oppo;

      .link {
        color: #333;
        outline: 0;
        text-decoration: none;
        font-weight: bold;
        -webkit-transition: all 0.2s ease-in-out;
        -moz-transition: all 0.2s ease-in-out;
        transition: all 0.2s ease-in-out;
        letter-spacing: 1px;
      }

      .motoo {
        margin: 0;
        font-weight: 700;
        letter-spacing: 1px;
      }
    }
  }

  nav {
    width: 100%;
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 0px 20px -5px rgb(158 158 158 / 22%);

    .vertical-menu {
      box-sizing: border-box;
      height: 500px;
      width: 100%;

      .menu-link {
        text-align: center;

        .link {
          display: block;
          text-align: center;
          font-weight: bold;
          padding: 10px 15px;
          letter-spacing: 5px;
          font-family: oppo;
          color: #333;
          transition: all .5s;
          -webkit-transition: all .5s;
          -moz-transition: all .5s;
          -ms-transition: all .5s;
          -o-transition: all .5s;
          display: flex;
          align-items: center;
          color: #212121;
          background-color: transparent;
          border-radius: 16px;
          margin: 8px;

          .iconfont {
            font-size: 20px;
            margin-right: 2pc;
          }

          .text {
            font-size: 15px;
          }

          &:hover {
            transition: .7s;
            color: #fff;
            background-color: #333;
            border-radius: 5px;
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
            -ms-border-radius: 5px;
            -o-border-radius: 5px;
            -webkit-transition: all .5s;
            -moz-transition: all .5s;
            -ms-transition: all .5s;
            -o-transition: all .5s;
          }

        }
      }

      border-radius: 5px;
      -webkit-border-radius: 5px;
      -moz-border-radius: 5px;
      -ms-border-radius: 5px;
      -o-border-radius: 5px;
    }

  }
}